package com.cloud.lan.entity.model.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by zhouquan on 2022/4/14.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lan_sms_send_record")
public class LanSmsSendRecordDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * userId
     */
    private Long userId;

    /**
     * mobile
     */
    private String mobile;

    /**
     * templateId
     */
    private String templateId;

    /**
     * 1=短信模板;2=彩信模板
     */
    private String templateType;

    /**
     * tagCode
     */
    private String tagCode;

    /**
     * 外部第三方发送id
     */
    private String outerSendId;


    /**
     * 发送状态1-初始化;2-发送中;3-发送成功;4-发送失败
     */
    private Integer sendStatus;

    /**
     * 发送时间
     */
    private Date sendTime;

    private String resCode;

    private String resMsg;

    /**
     * smsContent
     */
    private String smsContent;

    /**
     * 短信参数map格式json字符串
     *
     */
    private String smsParams;

    /**
     * 扩展字段
     */
    private String extension;

    /**
     * 是否删除，0.否，1.是
     */
    @TableLogic
    private Integer isDeleted;

    private Date createTime;

    private Date updateTime;

    private Long taskId;
}
